package com.angel.provider.health.impl;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.angel.dao.health.BuzVideoMapper;
import com.angel.health.BuzVideo;
import com.angel.provider.health.BuzVideoProvider;

/** 
* @author 作者姓名  cheng
* @version 
* 创建时间：2016年10月26日 下午5:52:18 
* 类说明 
*/
@Service
public class BuzVideoProviderImpl implements BuzVideoProvider {

	@Autowired
	private BuzVideoMapper bvMapper;
	
	@Override
	public List<Map<String, Object>> findAll(BuzVideo bv) {
		// TODO Auto-generated method stub
		return bvMapper.findAll(bv);
	}

	@Override
	public List<Map<String, Object>> findMinutes(BuzVideo bv) {
		// TODO Auto-generated method stub
		return bvMapper.findMinutes(bv);
	}

	@Override
	public int insert(BuzVideo bv) {
		// TODO Auto-generated method stub
		bv.setCreateTime(new Date());
		return bvMapper.insert(bv);
	}

}
